import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUi from 'element-ui'
import axios from 'axios'
import Router from 'vue-router'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/global.css'
Vue.prototype.$http = axios
Vue.use(ElementUi)
Vue.config.productionTip = false

const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return routerPush.call(this, location).catch(error=> error)
}

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
